<?php

namespace App\Modules\Apicrzs\Http\Requests;

use App\Modules\Admin\Http\Requests\BaseRequest;

class LoginRequest extends BaseRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'account' =>[
                'required',
                'max:256'
            ],
            'password'   => 'required',
        ];
    }

    public function messages()
    {
        return [
            'account.required' => '请填写手机号！',
            'account.max'      => '手机格式不正确！',
        ];
    }
}
